package com.example.yiqinmanagersystem.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.yiqinmanagersystem.entity.User;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

public interface UserMapper extends BaseMapper<User> {
    @Select("select * from user where username = #{username} and password = #{password}")
    User login(@Param("username") String username,@Param("password") String password);

    @Select("select * from user where username = #{username}")
    User selectUserByUsername(String username);
}
